//
// Created by ftd on 2021/8/18.
// 该类主是模拟网络消息的接收处理
//

#ifndef DEMO_NET_MSG_MANAGER_H
#define DEMO_NET_MSG_MANAGER_H
#include <thread>
#include <vector>
#include "utils/ring_buffer.h"

class NetMsgManager {

public:
    ~NetMsgManager();
    NetMsgManager(const NetMsgManager&) = delete;
    NetMsgManager& operator= (const NetMsgManager&) = delete;
    static NetMsgManager& Instance();

    bool Run();

    //通过配置数据模拟制造网络消息
    void MakeNetMsg();

private:
    NetMsgManager();

    std::vector<std::thread> net_threads_;

};


#endif //DEMO_NET_MSG_MANAGER_H
